home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
u_man
/
cat3
/
Tk
/
setgrid.z
/
setgrid
Wrap
Text File
|
1998-10-30
|
5KB
|
133 lines
TTTTkkkk____SSSSeeeettttGGGGrrrriiiidddd((((3333TTTTkkkk)))) TTTTkkkk____SSSSeeeettttGGGGrrrriiiidddd((((3333TTTTkkkk))))
NNNNAAAAMMMMEEEE
Tk_SetGrid, Tk_UnsetGrid - control the grid for interactive resizing
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
####iiiinnnncccclllluuuuddddeeee <<<<ttttkkkk....hhhh>>>>
TTTTkkkk____SSSSeeeettttGGGGrrrriiiidddd(_t_k_w_i_n, _r_e_q_W_i_d_t_h, _r_e_q_H_e_i_g_h_t, _w_i_d_t_h_I_n_c, _h_e_i_g_h_t_I_n_c)
TTTTkkkk____UUUUnnnnsssseeeettttGGGGrrrriiiidddd(_t_k_w_i_n) |
AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
Tk_Window _t_k_w_i_n (in) Token for window.
int _r_e_q_W_i_d_t_h (in) Width in grid units that corresponds to
the pixel dimension _t_k_w_i_n has requested
via TTTTkkkk____GGGGeeeeoooommmmeeeettttrrrryyyyRRRReeeeqqqquuuueeeesssstttt.
int _r_e_q_H_e_i_g_h_t (in) Height in grid units that corresponds
to the pixel dimension _t_k_w_i_n has
requested via TTTTkkkk____GGGGeeeeoooommmmeeeettttrrrryyyyRRRReeeeqqqquuuueeeesssstttt.
int _w_i_d_t_h_I_n_c (in) Width of one grid unit, in pixels.
int _h_e_i_g_h_t_I_n_c (in) Height of one grid unit, in pixels.
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
TTTTkkkk____SSSSeeeettttGGGGrrrriiiidddd turns on gridded geometry management for _t_k_w_i_n's toplevel
window and specifies the geometry of the grid. TTTTkkkk____SSSSeeeettttGGGGrrrriiiidddd is typically
invoked by a widget when its sssseeeettttGGGGrrrriiiidddd option is true. It restricts
interactive resizing of _t_k_w_i_n's toplevel window so that the space
allocated to the toplevel is equal to its requested size plus or minus
even multiples of _w_i_d_t_h_I_n_c and _h_e_i_g_h_t_I_n_c. Furthermore, the _r_e_q_W_i_d_t_h and
_r_e_q_H_e_i_g_h_t values are passed to the window manager so that it can report
the window's size in grid units during interactive resizes. If _t_k_w_i_n's |
configuration changes (e.g., the size of a grid unit changes) then the |
widget should invoke TTTTkkkk____SSSSeeeettttGGGGrrrriiiidddd again with the new information. |
TTTTkkkk____UUUUnnnnsssseeeettttGGGGrrrriiiidddd cancels gridded geometry management for _t_k_w_i_n's toplevel |
window. |
For each toplevel window there can be at most one internal window with |
gridding enabled. If TTTTkkkk____SSSSeeeettttGGGGrrrriiiidddd or TTTTkkkk____UUUUnnnnsssseeeettttGGGGrrrriiiidddd is invoked when some |
other window is already controlling gridding for _t_k_w_i_n's toplevel, the |
calls for the new window have no effect.
See the wwwwmmmm manual entry for additional information on gridded geometry
management.
PPPPaaaaggggeeee 1111
TTTTkkkk____SSSSeeeettttGGGGrrrriiiidddd((((3333TTTTkkkk)))) TTTTkkkk____SSSSeeeettttGGGGrrrriiiidddd((((3333TTTTkkkk))))
KKKKEEEEYYYYWWWWOOOORRRRDDDDSSSS
grid, window, window manager
PPPPaaaaggggeeee 2222